<template>
  <div>
    <input type="checkbox" :id="modalId" class="modal-toggle"/>
    <div class="modal z-30">
      <div class="modal-box" :class="customClass">
        <label :for="modalId" class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</label>
        <h3 class="text-lg font-bold">{{ title }}</h3>
        <slot/>
      </div>
      <label class="modal-backdrop" :for="modalId">Close</label>
    </div>
  </div>
</template>
<script setup lang="ts">
defineProps({
  modalId: {
    type: String,
    default: "",
  },
  title: {
    type: String,
    default: "",
  },
  customClass: {
    type: String,
    default: ""
  },
});
</script>
